package com.ucode.tool.exception;

import com.ucode.tool.base.ResultCodeEnum;

/**
 * Ucode平台未认证(未登录或者token过期)异常
 * @author: liliang
 * @date: 2019年12月6日 上午11:42:07
 */
public class UcodeUnauthenticatedException extends RuntimeException{

    private static final long serialVersionUID = 622084044946951289L;
    public int code;
    
    public UcodeUnauthenticatedException(){
        super(ResultCodeEnum.UNAUTHENTICATED.message);
        this.code = ResultCodeEnum.UNAUTHENTICATED.code;
    }
    
    public int getCode() {
        return code;
    }

    @Override
    public String getMessage() {
        return super.getMessage();
    }
    
}
